/**
 * @author:cloud.lg
 * @date:2021.3.26
 * @description:这里主要包含后台接口的定义
 * @module organization 用组织模块
 */
import {get, post, fetch } from '../fetch'

//组织列表
export const PartnerFindByPage = (params) => get('/system/partner/querylist', params, 'json');

//添加组织
export const addPartner = (params) => post('/system/partner', params, 'json');

//查询组织详情
export const getPartnerDetail = (params) => get('/system/partner/' + params.partnerId, {}, 'json');

//组织修改
export const editPartner = (params) => fetch('/system/partner', params, 'json', 'put');

//查询组织所有站点
export const queryStationList = (params) => get('/user/tcbPartner/queryStationList', params, 'json');

//修改供应商用户状态
export const updatePartnerStatusByUserId = (params) => fetch('/system/partner/updatePartnerStatus', params, 'json', 'put');

//查询登录用户所属供应商列表
export const findPartnerList = (params) => get('/system/partner/getPartnerByUser', params, 'json');

//组织列表(平台)
export const PartnerOptionSelect = (params) => get('/system/partner/optionSelect', params, 'json');